﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BarberShop.BLL;


public partial class AdImgManage : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            GetMovieData();
        }
    }

    protected void btn_search_Click(object sender, EventArgs e)
    {
        GetMovieData();
    }

    //getData
    protected void GetMovieData()
    {
        string name = tx_movieName.Text.Trim();
        var data = AdInfoBLL.GetAdList(name);
        this.Grid_Ad.DataSource = data;
        this.Grid_Ad.DataBind();
    }

    protected void Grid_Ad_RowDataBound(object sender, GridViewRowEventArgs e)
    {

    }
    protected void Grid_Ad_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
    {
        this.Grid_Ad.PageIndex = e.NewSelectedIndex;
    }
}
